<tagLib name="html" />
<include file="Public:header" />
<script src="/Public/source/jquery.js"></script>
<script>
	$(function(){
		$("#quanxuan").click(function(){
			$("[type='checkbox']").attr("checked",'true');
			$(".quxiao").removeAttr("checked");
		});
		$("#quxiao").click(function(){
			$("[type='checkbox']").removeAttr("checked");
			$(".quxiao").attr("checked",'true');
		});
	});
</script>
	<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
	  <div style="float:left;"><a href="{YICMS::U('Index/stat')}" target="main"><b>控制面板首页</b></a>&nbsp;&raquo;&nbsp;数据库管理</div>
	</div>
	<table cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;">
		<tr class="header" align="center">
			<td width="10%" class="center">选择</td>
			<td width="20%" class="center">数据表名称</td>
			<td  width="15%" class="center">数据表类型</td>
			<td  width="15%" class="center">数据表字符集</td>
			<td  width="15%" class="center">数据表记录数</td>
			<td  width="15%" class="center">数据表碎片</td>
			<td  width="10%" class="center">大小</td>
		</tr>
	</table>
<form action="" method="post" id="myform" name="myform">
	<ul id="list">
		<volist name="list" id="vo">
			<li style="list-style:none;">
				<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
					<tr align="center" class="smalltxt">
						<td width="10%" class="altbg1 center"><input type="checkbox" name="tables[]" value="{YICMS:$vo.Name}"/></td>
						<td width="20%" class="altbg2 center">{YICMS:$vo.Name}</td>
						<td width="15%" class="altbg1 center">{YICMS:$vo.Engine}</td>
						<td width="15%" class="altbg2 center">{YICMS:$vo.Collation}</td>
						<td width="15%" class="altbg1 center">{YICMS:$vo.Rows}</td>
						<td width="15%" class="altbg2 center">{YICMS:$vo.Data_free|getFileSize=###}</td>
						<td width="10%" class="altbg1 center">{YICMS:$vo.Data_length|getFileSize=###}</td>
					</tr>
				</table>
			</li>
		</volist>	
	</ul>
	<table cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;">
		<tr class="header" align="center">
			<td width="15%" class="center">
				<input type="checkbox" id="quanxuan" />全选&nbsp;/&nbsp;
				<input type="checkbox" id="quxiao" class="quxiao"/>全不选
			</td>
			<input type="hidden" name="option" value="" id="option"/>
			<td width="10%" class="center">
				<input type="button" class="button" value="修 复" onclick="myform.action='{YICMS::U('Data/option')}';$('#option').val('repair');$('#myform').submit();">
			</td>
			<td width="10%" class="center">
				<input type="button" class="button" value="优 化" onclick="myform.action='{YICMS::U('Data/option')}';$('#option').val('optimize');$('#myform').submit();">
			</td>
			<td width="10%" class="center">
				<input type="button" class="button" value="检 查" onclick="myform.action='{YICMS::U('Data/option')}';$('#option').val('check');$('#myform').submit();">
			</td>
			<td width="10%" class="center">
				<input type="button" class="button" value="分 析" onclick="myform.action='{YICMS::U('Data/option')}';$('#option').val('analyze');$('#myform').submit();">
			</td>
			<td width="45%" style="text-align:right">数据库大小：<font color="red">{YICMS:$total|getFileSize=###}</font></td>
		</tr>
	</table>
</form>	
<br/>
<include file="Public:footer" />